package top.lyunz.lucky.hr.controller;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import top.lyunz.lucky.hr.bean.configFileSecondKind;
import top.lyunz.lucky.hr.mapper.configFileSecondKindMapper;
import top.lyunz.lucky.hr.service.configFileSecondKindService;
import top.lyunz.lucky.hr.tools.SimpleResult;

@Controller
public class configFileSecondKindController {
	@Autowired
	private configFileSecondKindService configFileSecondKindService;
	@RequestMapping("/getconfigFileSecondKind/{id}")
	@ResponseBody
	public SimpleResult getconfigFileSecondKind(@PathVariable("id") int id) {
		List<configFileSecondKind> arr = configFileSecondKindService.configFileSecondKindGetByFirstKindId(id);
		return new SimpleResult(arr);
	}
	@RequestMapping("/configFileSecondKindGetBySecondKindId/{id}")
	@ResponseBody
	public SimpleResult configFileSecondKindGetBySecondKindId(@PathVariable("id") int id) {
		List<configFileSecondKind> arr = configFileSecondKindService.configFileSecondKindGetBySecondKindId(id);
		return new SimpleResult(arr);
	}
}
